import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import cesium from 'vite-plugin-cesium'
import glsl from 'vite-plugin-glsl' //着色器

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(),cesium(),glsl()],
  server: {
    host: '0.0.0.0',
    port: 8080,
    open: true,
    proxy: {
      '/geoserver': {
        target:'http://geoserver.91xxt.com',//远程GIS务地址
        changeOrigin: true,
        rewrite: (path) => path.replace(new RegExp('^\/geoserver'), 'geoserver')
      }
    }
  },
})
